package service;


import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import pojo.Books;
import pojo.PageBean;

import java.util.List;

public interface BookService {
    int addBook(Books books);
    int delete(int id);
    int updateBook(Books books);
    Books queryBookByID(int id);
    List<Books> queryAllBook();
    //模糊查询
    PageBean<Books> queryBookByKeyword(int start, int rows, String keyword, String keyword2);
    //根据书名进行查询
    Books queryBookByBookName(@Param("bookName") String bookName);
    //怕错那你就会永远错,根据条件查询总记录数
    int findTotalCount(@Param("string_01") String string_01,@Param("string_02") String string_02 );
}
